package demo2;

/// 接口

public class Test {
    public static void fun(Ishape ishape){
        ishape.draw();
    }

    public static void main(String[] args) {
        Ishape ishape1 = new Circle();
        Ishape ishape2 = new Rect();

        fun(ishape1);
        fun(ishape2);
    }
}
